VIP_EBD_TIME = 60*60*24*7

ROUTE_CODE_MAP = {
    200:'成功',
    201:'该地址已存在',
    302:'地址重定向',
    400:'请求类型错误',
    401:'没有权限',
    402:'前端参数不完整',
    403:'用户手机号不能为空',
    404:'路由不对',
    405:'请求方法错误',
    406:'用户密码不对',
    407:'找不到该用户',
    408:'图形验证码错误',
    409:'用户手机好格式不对',
}

REDIS_MSG_CODE_KEY = 'msg'

LOGIN_APP_MAP = {
    'weibo': {"client_id": '3674019597',
              "client_secret": "7ae99bc0d54ead29fc8d1b9fabd78587",
              "redirect_uri": 'http://127.0.0.1:8000/user/weiboCallback/',
              "grant_type": "authorization_code"},
    'github': {
        'client_secret': '17f3c97a314befb869c1d121da4dab7541d17545',
        'client_id': '96fc0810a20e268e8c6e',
        'redirect_uri': 'http://127.0.0.1:8000/callback/github',
        'app_name': 'shuaige',
    },
    'gitee':{
        'client_secret':'59aa2ab97eec1dc981cfbce6520c5ccd92d3a0b53162b01daf13084769045ba6',
        'client_id':'bf5d0c15f7aa32b2e85d7c3d32c2fd24386b0c6a2372f50667babda2eb11f96a',
        'redirect_uri':'http://127.0.0.1:8000/callback/gitee',
        'grant_type': 'authorization_code',
    }
}

LOGIN_APP_URL = {
    'weibo': {
        'warrant': "https://api.weibo.com/oauth2/authorize?"
    },
    'github': {
        'warrant': "https://github.com/login/oauth/authorize?",
        'access_token': 'https://github.com/login/oauth/access_token?',
        'user_info': 'https://api.github.com/user'
    },
    'gitee':{
        'warrant': "https://gitee.com/oauth/authorize?response_type=code&",
        'access_token': 'https://gitee.com/oauth/token?',
        'user_info': 'https://api.gitee.com/api/v5/user'
    }
}

LIMIT = 5
OFFSET = 0

CAR = 'car_'

AK = 'hHNVe_X9OndQCrMcNKRJkxAuy2eRyBBJ44hRyEBW'
SK = 'KE84tb3fzZ_SWMG5De9iRQBSGUkCF5QgFty_c1Xf'
BUCT_NAME = 'sunhaopeng'

